<template>
  <div class="slot-dom-block">
    <div class="slot-dom-block-bg">
      <slot name="bg" />
    </div>
    <div class="slot-dom-block-main">
      <slot />
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  methods: {},
};
</script>

<style lang="scss" scoped>
.slot-dom-block {
  position: relative;
  .slot-dom-block-bg {
    width: 100%;
    height: 100%;
    > * {
      width: 100%;
      height: 100%;
      display: block;
    }
  }
  .slot-dom-block-main {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
  }
}
</style>
